package com.motorhome.manage.service;

import com.motorhome.base.dao.Pager;
import com.motorhome.base.util.Result;
import com.motorhome.manage.domain.Car;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: John
 */
public interface CarService {

    Pager<Car> getCarList(String page, String rows);

//    Pager<Car> getCarListType(String page, String rows,String type);

    Result addCar(String name, String description, String status, String remark, MultipartFile file, String viewUrl, String insurance, String carNum,String flag);

    Result updateCar(String id, String name, String description, String status, String remark, MultipartFile file, String viewUrl, String insurance, String carNum,String flag);

    Result deleteCar(String id);

    Result addPrice(HttpServletRequest request, String carId, String priceDesc, String price, String orderBy,
                    String rateWeekend, String rate1, String day1, String rate2, String day2, String rate3, String day3);

    Result deletePrice(String priceId);

    Result bindDevice(String carId, String deviceId, String deviceNumber, String deviceName);
}
